<div id="latest-post" class="post">
		<h1 class="title"><a href="#"><?=$doc_info[0]['fname'];?> <?=$doc_info[0]['lname'];?></a></h1>
		<div class="entry">
			<table>
				<tr>
					<td><img src="<? if (!empty($doc_info[0]['photo'])):?><?="photos/".$doc_info[0]['photo'];?><? else : ?>images/no_photo.gif<? endif; ?>"></td>
					<td valign="top">
						Name: <?=$doc_info[0]['fname'];?> <?=$doc_info[0]['lname'];?><br>
						Company: <br>
						Location: <br>
						Department: <br>
						Added: <?=$doc_info[0]['added'];?>
					</td>
				</tr>			
				<tr>
					<td colspan="2" align="center">
						<?=anchor('user/doctor_rate/'.$doc_info[0]['id'],'Rate this doctor'); ?><br>
						<?=anchor('user/tell_friend/'.$doc_info[0]['id'],'Tell a friend'); ?>
					</td>
				</tr>				
			</table>

			<table width="100%" >
				<tr>
					<td bgcolor="#dddddd">Score Card</td>
				</tr>

				<tr>
					<td style="border: #cccccc 1px solid;">
						 sd
					</td>
				</tr>

			</table>	
			<table width="100%" >
				<tr>
					<td bgcolor="#dddddd">Rating Key</td>
				</tr>

				<tr>
					<td style="border: #cccccc 1px solid;">
						 sd
					</td>
				</tr>

			</table>			
			
			<table width="100%" >
				<tr>
					<td colspan="2" bgcolor="#dddddd">Comments & ratings</td>
				</tr>
				<? foreach ($doc_info["comments"] AS $item) : ?>
				<tr >
					<td style="border: #cccccc 1px solid;">
						 Posted by <?=$item['rater_userinfo'][0]['username']?> <i>(<?=$item["changed"]?>)</i><br><br>
						 <?=$item["comment"] ?>
					</td>
					<td style="border: #cccccc 1px solid;">
						<? foreach ($item['rating'] AS $r_item) : ?>
						<?=$r_item['name'];?>: <?=$r_item['value'];?><br>
						<? endforeach; ?>
					</td>
				</tr>
				<? endforeach; ?>
			</table>
		</div>
</div>